package logic.scene
{
	import common.AFactory.AScene;
	import common.core.Core;
	import common.core.UIService;
	import common.manager.GUI;
	import common.manager.keymanager.Key;
	import common.manager.keymanager.KeyCode;
	import common.manager.keymanager.KeyCombo;
	
	import component.show.containers.UIFrame;
	
	import fl.containers.UILoader;
	
	import flash.events.Event;
	
	import logic.manager.UIProxy;
	import logic.ui.componentInfoMed.ButtonInfoMed;
	import logic.ui.componentInfoMed.CheckBoxInfoMed;
	import logic.ui.componentInfoMed.ComboBoxInfoMed;
	import logic.ui.componentInfoMed.DataGridInfoMed;
	import logic.ui.componentInfoMed.ImageInfoMed;
	import logic.ui.componentInfoMed.LabelInfoMed;
	import logic.ui.componentInfoMed.ListInfoMed;
	import logic.ui.componentInfoMed.TextAreaInfoMed;
	import logic.ui.componentInfoMed.TextInputInfoMed;
	import logic.ui.componentInfoMed.UIFrameInfoMed;
	import logic.ui.componentInfoMed.UILoaderInfoMed;
	import logic.ui.uieditscene.ScanComponentMed;
	import logic.ui.uieditscene.UIContainMed;

	public class UIEditScene extends AScene
	{
		public static const NAME : String = "UIEditScene";
		
		private var m_key : Key;
		
		private var m_keyR : KeyCombo;
		
		public function UIEditScene()
		{
			
			m_key = new Key;
			m_keyR = m_key.createKeyCombo(KeyCode.VK_R);
			
			UIProxy.ScanComponent.start();
			UIProxy.UIContain.start();
			UIProxy.TopBar.start();
			
			m_keyR.addEventListener(KeyCombo.COMBO_PRESSED,OnPressedR);
		}
		
		private function OnPressedR(evt : Event) : void
		{
//			(GUI.find(UIContainMed.NAME) as UIContainMed).removeComponent();
		}
		
		public override function destory():void
		{
			m_keyR.removeEventListener(KeyCombo.COMBO_PRESSED,OnPressedR);
			
			m_key.removeKeyCombo(m_keyR);
		}
	}
}